﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DirectX_CS
{

	public class ObjectListItem
	{
		private object mPrimitive;
		private int mSeriesNumber;

		public int SeriesNumber
		{
			get { return mSeriesNumber; }
			set { mSeriesNumber = value; }
		}
		protected string shortName = null;

		public object ObjectAssociated
		{
			get { return mPrimitive; }
			set { mPrimitive = value; }
		}

		public ObjectListItem(object thePrimitive)
		{
			mPrimitive = thePrimitive;
		}
		public ObjectListItem(object thePrimitive, int seriesNumber)
		{
			mPrimitive = thePrimitive;
			mSeriesNumber = seriesNumber;
		}
		public string UniqueName
		{
			get {
				if (shortName == null)
					return mPrimitive.GetType().ToString() + mSeriesNumber.ToString();
				else
					return shortName + mSeriesNumber.ToString();
			}
		}
		public string ShortName
		{
			get{return shortName;}
			set{shortName = value;}
		}

	}
}
